package cloudEntity.vo.user;

import cloudEntity.enumation.FacultyEnum;
import cloudEntity.enumation.UserDutyEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: Smart School
 * @ClassName SmartUserClassVO
 * @description:
 * @author: 陈智博
 * @create: 2025-05-16 23:59
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class SmartUserClassVO implements Serializable {
    //班级自增主键 与 smart_user 表的 `sys_user_class`字段关联
    private Integer sysUserClassId;
    //班级名字
    private String sysUserClassName;
    //班级描述
    private String sysUserClassDescription;
    //班级院系 -- 与 sys_user_major表关联
    private String sysUserClassFaculty;
    //班主任名字
    private String sysUserClassTeacher;
    //班级入学年级
    private Short sysUserClassYear;
    //班级状态
    private Integer sysUserClassGrade;
    //班级创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date sysUserClassCreateTime;
    //班级修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date sysUserClassUpdateTime;

    public void setSysUserClassFaculty(String UserType)
    {
        this.sysUserClassFaculty = FacultyEnum.getDescriptionByValue(Integer.valueOf(UserType));
    }

}
